package PangModel;

/**
 * Created by loren on 23.04.2015.
 */
public abstract class Item extends GameObject
{
    public static final int POWERUP_IMMUNITY = 1;
    public static final int POWERUP_STICKY_ROPE = 2;
    public static final int POWERUP_MACHINE_GUN = 3;
    public static final int ITEM_BONUS_SCORE = 100;
    public static final int ITEM_BONUS_TIME = 10;

    int itemType;
    int imageID;
    Item(int itemType) throws UnsupportedArgumentException {
        this.itemType = itemType;
        switch(itemType)
        {
            case POWERUP_IMMUNITY: imageID = 1;
                    break;
            case POWERUP_STICKY_ROPE: imageID = 1;
                break;
            case POWERUP_MACHINE_GUN: imageID = 1;
                break;
            case ITEM_BONUS_SCORE: imageID = 1;
                break;
            case ITEM_BONUS_TIME: imageID = 1;
                break;
            default: throw new UnsupportedArgumentException("Unsupported argument for Item constructor method: " + itemType);
        }
    }

    public int getItemType()
    {
        return itemType;
    }

    public void resetDirection() {
        setDirection(0,-1);
    }
}
